<div class="row">
    <div class="col-md-12">
        <div class="box box-primary">
            {include file="template/form_header" /}
            <form id="dataForm" class="form-horizontal dataForm" action="" method="post" enctype="multipart/form-data">
                <div class="box-body">
                    <div class="fields-group">
                        {if isset($info)}
                        <input id="id" name="id" value="{$info.id}" hidden placeholder="请勿修改">
                        {/if}

                        <div class="form-group">
                            <label for="name" class="col-sm-2 control-label">帐号</label>
                            <div class="col-sm-10 col-md-4">
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="fa fa-user"></i></span>
                                    <input maxlength="20" id="name" name="name" value="{$info.name|default=''}"
                                           class="form-control" placeholder="请输入用户帐号">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="password" class="col-sm-2 control-label">密码</label>
                            <div class="col-sm-10 col-md-4">
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="fa  fa-eye-slash"></i></span>
                                    <input autocomplete='new-password' maxlength="20" type="password" id="password" name="password"
                                           class="form-control" placeholder="不修改无需填写">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="nickname" class="col-sm-2 control-label">真实姓名</label>
                            <div class="col-sm-10 col-md-4">
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="fa fa-pencil"></i></span>
                                    <input maxlength="20" id="nickname" name="nickname"
                                           value="{$info.nickname|default=''}" class="form-control"
                                           placeholder="请输入用户姓名或昵称">
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="mobile" class="col-sm-2 control-label">手机号</label>
                            <div class="col-sm-10 col-md-4">
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="fa fa-phone"></i></span>
                                    <input type="tel" maxlength="11" id="mobile" name="mobile"
                                           value="{$info.mobile|default=''}" class="form-control"
                                           placeholder="请输入用户手机号">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="mobile" class="col-sm-2 control-label">邮箱</label>
                            <div class="col-sm-10 col-md-4">
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
                                    <input maxlength="50" type="email" id="email" name="email"
                                           value="{$info.email|default=''}" class="form-control" placeholder="请输入用户邮箱">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="id_card" class="col-sm-2 control-label">身份证号</label>
                            <div class="col-sm-10 col-md-4">
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
                                    <input maxlength="18" type="text" id="id_card" name="id_card"
                                           value="{$info.id_card|default=''}" class="form-control" placeholder="请输入身份证号">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="car_number" class="col-sm-2 control-label">车牌号</label>
                            <div class="col-sm-10 col-md-4">
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
                                    <input maxlength="50" type="text" id="car_number" name="car_number"
                                           value="{$info.car_number|default=''}" class="form-control" placeholder="请输入车牌号">
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="car_type" class="col-sm-2 control-label">车型车系</label>
                            <div class="col-sm-10 col-md-4">
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
                                    <input maxlength="50" type="text" id="car_type" name="car_type"
                                           value="{$info.car_type|default=''}" class="form-control" placeholder="请输入车型">
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="car_color" class="col-sm-2 control-label">颜色</label>
                            <div class="col-sm-10 col-md-4">
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
                                    <input maxlength="50" type="text" id="car_color" name="car_color"
                                           value="{$info.car_color|default=''}" class="form-control" placeholder="请输入车的颜色">
                                </div>
                            </div>
                        </div>
                        <input id="dr_id" name="dr_id" type="hidden"/>
                        <!--图片上上传，暂时不做-->

                        <!--<div class="form-group">-->
                            <!--<label for="headimg" class="col-sm-2 control-label">头像</label>-->
                            <!--<div class="col-sm-10 col-md-4">-->
                                <!--<div class="input-group file-caption-main">-->
                                    <!--<div tabindex="500" class="form-control file-caption  kv-fileinput-caption">-->
                                        <!--<div class="file-caption-name" id="input-filename-headimg">-->
                                        <!--</div>-->
                                    <!--</div>-->
                                    <!--<div class="input-group-btn">-->
                                        <!--<div tabindex="500" class="btn btn-primary btn-file">-->
                                            <!--<i class="glyphicon glyphicon-folder-open"></i>-->
                                            <!--<span class="hidden-xs">浏览</span>-->
                                            <!--<input type="file" class="form-input-image"-->
                                                   <!--data-preview="image-preview-headimg"-->
                                                   <!--data-showname="input-filename-headimg" name="headimg" id="headimg">-->
                                        <!--</div>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->

                        <!--<div class="form-group">-->
                            <!--<label class="col-sm-2 control-label"></label>-->
                            <!--<div class="col-sm-10 col-md-4">-->
                                <!--<div class="input-group file-caption-main">-->
                                    <!--<img id="image-preview-headimg" src="{$info.headimg|default=''}"-->
                                         <!--style="max-width: 150px;max-height: 150px">-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                        <div class="form-group">
                            <label for="status" class="col-sm-2 control-label">启用</label>
                            <div class="col-sm-10 col-md-4">
                                <div class="input-group iconpicker-container">
                                    <input {if (isset($info) && $info.status==1) || !isset($info)}checked{/if}
                                    value="{$info.status|default='1'}"
                                    class="form-input-switch" type="checkbox" placeholder="status-switch"
                                    data-input="status">
                                    <input id="status" name="status" value="{$info.status|default='1'}" type="hidden"/>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                {include file="template/form_footer" /}
            </form>
        </div>
    </div>
</div>
